import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Demo4 {
    public static void main(String[] args) {
        //创建线程池
        ExecutorService executor = Executors.newFixedThreadPool(3);

        //创建任务
        Runnable task1 = new Runnable() {
            @Override
            public void run() { //任务1
                System.out.println("Task1 running");
            }



        };
    }
}
